﻿using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace EnqueteMobile.Repository.Database.Model
{
    [Table("ConfiguracaoCliente", Schema = "dbo")]
    public class ConfiguracaoCliente
    {
        [Key]
        [DatabaseGeneratedAttribute(DatabaseGeneratedOption.Identity)]
        public long Id { get; set; }

        [Required]
        public long Sistema { get; set; }

        [Required]
        public long Cliente { get; set; }
        
        public DateTime DataHoraRegistro { get; set; }

        public Nullable<DateTime> DataHoraInvalidacao { get; set; }

        public Nullable<TimeSpan> PeriodoTrocaPeriodicaSenha { get; set; }

        public Nullable<TimeSpan> ToleranciaParaResponderEnquete { get; set; }

        public Nullable<TimeSpan> ToleranciaSemMovimentacao { get; set; }
    }
}